package com.ethel.pagination.demo.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testMain {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext(new String[]{"classpath:spring/spring-base.xml","classpath:spring/spring-db.xml","classpath:spring/spring-mvc.xml"});
        PropertyPlaceHolderTest bean = ctx.getBean(PropertyPlaceHolderTest.class);
//        PropertyPlaceHolderTest bean = (PropertyPlaceHolderTest)ctx.getBean("testName");
        
        System.out.println(bean.masterName);
    }
}
